package com.hd.pzhwlxt.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hd.pzhwlxt.mapper.VehicleRepairInfoMapper;
import com.hd.pzhwlxt.pojo.VehicleRepairInfo;
import com.hd.pzhwlxt.service.VehicleRepairInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
@create: 2022-09-21 9:02
@author: 怀念天空
@Description: 
*/

@Service
public class VehicleRepairInfoServiceImpl extends ServiceImpl<VehicleRepairInfoMapper, VehicleRepairInfo> implements VehicleRepairInfoService{

    @Autowired
    private VehicleRepairInfoMapper vehicleRepairInfoMapper;

    /**
     * 查询所有车辆维修记录，包括维修人员
     * @param pageNum
     * @param pageSize
     * @return
     */
    public Page<VehicleRepairInfo> getVehicleAndWokerInfo(Integer pageNum,Integer pageSize){
        return vehicleRepairInfoMapper.getVehicleAndWoker(new Page<VehicleRepairInfo>(pageNum, pageSize));
    }
}
